﻿using B.S.Warehouse.Domain;
using B.S.Warehouse.ErrorCord;
using MediatR;
using SqlSugar;

namespace B.S.Warehouse.Read.Api.Application.Command.StockInApplicationcommands
{
    public class GetStockInApplicationCommand : IRequest<ApiResult<ApiPaging<StockInApplication>>>
    {
        public int pageindex { get; set; }
        public int pageSize { get; set; }
        // 单据主题，必填
        [SugarColumn(IsNullable = false)]
        public string? DocumentSubject { get; set; }

        // 单据编号，可自动生成，这里假设为字符串类型
        public string? DocumentNumber { get; set; }
        // 库管人员，必填
        [SugarColumn(IsNullable = false)]
        public string? WarehouseKeeper { get; set; }
        // 入库类别
        public string? StockInCategory { get; set; }

        // 申请时间，必填，这里用DateTime类型
        [SugarColumn(IsNullable = false)]
        public DateTime? ApplicationTime { get; set; } = DateTime.Now;

        // 申请人员
        public string? Applicant { get; set; }
    }
}
